﻿{% load i18n %}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>{% block title %}{{ title }}{% endblock %}</title>

<meta http-equiv="content-type" content="text/html; charset=utf-8" />
{% block styles %}
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}skin/css/style6.css" />
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}skin/css/tutorsty5.css" />
{% endblock %}
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}skin/css/colour.css" />
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}skin/css/win.css" />
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}skin/css/menu.css" />
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}skin/css/flexcrollstyles.css" />


<script type='text/javascript' src="{{ MEDIA_URL }}skin/js/flexcroll.js"></script>
<script type='text/javascript' src="{{ MEDIA_URL }}skin/js/menu.js"></script>
    {% block in_head %}
    <script type="text/javascript" language="javascript" src="{{ MEDIA_URL }}lytebox/lytebox.js"></script>
    <link rel="stylesheet" href="{{ MEDIA_URL }}/lytebox/lytebox.css" type="text/css" media="screen" />
    {% endblock %}

</head>
{% load customtags %}
{% load simplecms %}

{% get_lang_menu 'main_menu' LANGUAGE_CODE %}
<body>

<div id="logo"></div>
<div id="content">

        <div id="foooter">
            <table width="1080" height="22" border="0">
                <tr>
                   <td width="942" align="left"><ul id="cssmenu">
                {% for object in main_menu %}
                        {% get_branches 'sub_menu' object %}
                        <li>
                            <a href="{{ object.content_object.get_absolute_url }}">{{ object.short_title }}</a>
                            {% if sub_menu %}
                                    <ul>
                            {% for sub_object in sub_menu %}
                                {% get_branches 'sub_sub_menu' sub_object %}
                                        <li>
                                            <a href="{{ sub_object.content_object.get_absolute_url }}">{{ sub_object.short_title }}</a>
                                            {% if sub_sub_menu %}
                                            <ul>
                                            {% for sub_sub_object in sub_sub_menu %}
                                            <li><a href="{{ sub_sub_object.content_object.get_absolute_url }}">{{ sub_sub_object.short_title }}</a></li>
                                            {% endfor %}
                                            </ul>
                                            
                                            {% endif %}
                                        </li>
                            {% endfor %}
                                    </ul>
                            {% endif %}
                        </li>
                        {% if not forloop.last %}<li> | </li>{% endif %}
                {% endfor %}
                    </ul>
                    </td>
                    <td width="165" align="right"><ul id="cssmenu">
            {% ifequal LANGUAGE_CODE 'ru' %}
                                    <li><A href="#">Русский</A> </li><li>| </li> <li><A href="javascript: setlang('en')">English</A></li>
            {% else %}
                                   <li> <A href="javascript: setlang('ru')">Русский</A> </li><li>|</li><li> <A href="#">English</A></li>
            {% endifequal %}
            </ul>
	</td>
            <SCRIPT language="JavaScript1.1">
            function setlang(lang)
            {
                var path_str = location.pathname;
                path_str = path_str.replace(/^\/(ru|en)\//, '/'+lang+'/')
                location.href = location.protocol+"//"+location.host+path_str;
            }
            </SCRIPT>
                    </td>
                </tr>
            </table>
        </div>
    {% block main_content %}
	<div id="column2">
        <table width="1060" border="0">
            <tr>
                <td height="40px">&nbsp;</td>
            </tr>
        </table>
        <div id='mycustomscroll' class='flexcroll'>
            <div>
                <table width="690" border="0">
                    <tr>
                        <td>
                        {% block content %}
                        {% endblock %}
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    {% endblock %}
</div>
<div id="footer"> 
    {% trans 'copyright &copy; ' %}<a href="www.vladimirkonovalov.com">Konovalov</a> | 
    {% trans 'Coding by' %} <a href="mailto:a_mer@i.ua">MeR</a> | 
    {% trans 'Powered by' %} <a href="http://dixon-che.blogspot.com">Dixon</a>.
</div>

</body>
</html>
